package com.ibm.law.service.system;

import java.util.List;

import com.ibm.law.domain.Category;
import com.ibm.law.domain.ChargeItem;
import com.ibm.law.service.DataAccessService;

public class ChargeItemService extends DataAccessService<ChargeItem> {
	public List<ChargeItem> findByCategory(Category c) {
		String jpql = "select o from ChargeItem o where o.category=?";
		return entityManager.createQuery(jpql, ChargeItem.class)
				.setParameter(1, c).getResultList();
	}
}
